package by.brest.bspc.domain;

/**
 * This class contains the data of grade.
 *
 * @date: 7/28/13 10:42 AM
 * @author: natallia
 */

public class Grade {
    private String gradeType;
    private String disciplineName;
    private int mark;
    private int respect;
    private int direspect;
    private int semesterNumber;
    private String teacherName;

    public Grade() {
        this.gradeType = null;
        this.disciplineName = null;
        this.mark = 0;
        this.respect = 0;
        this.direspect = 0;
        this.semesterNumber = 0;
        this.teacherName = null;
    }

    public Grade(Grade grade) {
        this.gradeType = grade.getGradeType();
        this.disciplineName = grade.getDisciplineName();
        this.mark = grade.getMark();
        this.respect = grade.getRespect();
        this.direspect = grade.getDirespect();
        this.semesterNumber = grade.getSemesterNumber();
        this.teacherName = grade.getTeacherName();
    }

    /**
     * Gets grade type of mark
     *
     * @return grade type of mark
     */
    public String getGradeType() {
        return gradeType;
    }

    /**
     * Sets grade type of mark
     *
     * @param gradeType grade type of mark
     */
    public void setGradeType(String gradeType) {
        this.gradeType = gradeType;
    }

    /**
     * Gets name discipline of mark
     *
     * @return name discipline of mark
     */
    public String getDisciplineName() {
        return disciplineName;
    }

    /**
     * Sets name discipline of mark
     *
     * @param disciplineName name discipline of mark
     */
    public void setDisciplineName(String disciplineName) {
        this.disciplineName = disciplineName;
    }

    /**
     * Gets mark
     *
     * @return mark
     */
    public int getMark() {
        return mark;
    }

    /**
     * Sets mark
     *
     * @param mark mark
     */
    public void setMark(int mark) {
        this.mark = mark;
    }

    /**
     * Gets count of respect truancy
     *
     * @return count of respect truancy
     */
    public int getRespect() {
        return respect;
    }

    /**
     * Sets count of respect truancy
     *
     * @param respect count of respect truancy
     */
    public void setRespect(int respect) {
        this.respect = respect;
    }

    /**
     * Gets count of direspect truancy
     *
     * @return count of direspect truancy
     */
    public int getDirespect() {
        return direspect;
    }

    /**
     * Sets count of direspect truancy
     *
     * @param direspect count of direspect truancy
     */
    public void setDirespect(int direspect) {
        this.direspect = direspect;
    }

    /**
     * Gets number of semester
     *
     * @return number of semester
     */
    public int getSemesterNumber() {
        return semesterNumber;
    }

    /**
     * Sets semester number
     *
     * @param semesterNumber semester number
     */
    public void setSemesterNumber(int semesterNumber) {
        this.semesterNumber = semesterNumber;
    }

    /**
     * Gets teacher name
     *
     * @return teacher name
     */
    public String getTeacherName() {
        return teacherName;
    }

    /**
     * Sets teacher name
     *
     * @param teacherName teacher name
     */
    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "gradeType='" + gradeType + '\'' +
                ", disciplineName='" + disciplineName + '\'' +
                ", mark=" + mark +
                ", respect=" + respect +
                ", direspect=" + direspect +
                ", semesterNumber=" + semesterNumber +
                ", teacherName=" + teacherName +
                '}';
    }
}